package cn.wp.ewallet.wmps.scheduler;

import cn.wp.common.core.plugin.scheduler.SchedulerRunnable;
import cn.wp.common.core.plugin.scheduler.SchedulerTask;
import cn.wp.common.core.util.ApplicationContextUtil;
import cn.wp.ewallet.wmps.service.TtySSettlementService;
import lombok.extern.slf4j.Slf4j;

/**
 * Created by yangjin on 2020/1/15
 */
@Slf4j
public class TtySettlementRunnable extends SchedulerRunnable {
    public TtySettlementRunnable(SchedulerTask schedulerTask) {
        super(schedulerTask);
    }

    @Override
    public void runStart() {
        TtySSettlementService ttySSettlementService = ApplicationContextUtil.getBean(TtySSettlementService.class);
        ttySSettlementService.ttyEarnSettle();
    }

    @Override
    public void runFinish(SchedulerTask schedulerTask) {
        log.info("天天盈理财每日统计结束");
    }
}
